package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.InvoiceMessageMapper;
import com.ruoyi.system.domain.InvoiceMessage;
import com.ruoyi.system.service.IInvoiceMessageService;

/**
 * 公告通知Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-07-05
 */
@Service
public class InvoiceMessageServiceImpl implements IInvoiceMessageService 
{
    @Autowired
    private InvoiceMessageMapper invoiceMessageMapper;

    /**
     * 查询公告通知
     * 
     * @param id 公告通知主键
     * @return 公告通知
     */
    @Override
    public InvoiceMessage selectInvoiceMessageById(Long id)
    {
        return invoiceMessageMapper.selectInvoiceMessageById(id);
    }

    /**
     * 查询公告通知列表
     * 
     * @param invoiceMessage 公告通知
     * @return 公告通知
     */
    @Override
    public List<InvoiceMessage> selectInvoiceMessageList(InvoiceMessage invoiceMessage)
    {
        return invoiceMessageMapper.selectInvoiceMessageList(invoiceMessage);
    }

    /**
     * 新增公告通知
     * 
     * @param invoiceMessage 公告通知
     * @return 结果
     */
    @Override
    public int insertInvoiceMessage(InvoiceMessage invoiceMessage)
    {
        return invoiceMessageMapper.insertInvoiceMessage(invoiceMessage);
    }

    /**
     * 修改公告通知
     * 
     * @param invoiceMessage 公告通知
     * @return 结果
     */
    @Override
    public int updateInvoiceMessage(InvoiceMessage invoiceMessage)
    {
        return invoiceMessageMapper.updateInvoiceMessage(invoiceMessage);
    }

    /**
     * 批量删除公告通知
     * 
     * @param ids 需要删除的公告通知主键
     * @return 结果
     */
    @Override
    public int deleteInvoiceMessageByIds(Long[] ids)
    {
        return invoiceMessageMapper.deleteInvoiceMessageByIds(ids);
    }

    /**
     * 删除公告通知信息
     * 
     * @param id 公告通知主键
     * @return 结果
     */
    @Override
    public int deleteInvoiceMessageById(Long id)
    {
        return invoiceMessageMapper.deleteInvoiceMessageById(id);
    }
}
